import React from 'react';

const Child = (props) => {

  console.log(props);

  return (
    <div>
      <p>Child</p>
      { props.fruit.map((item, index) => (<span key={ index }>{ item.fruit }</span>)) }
      { props.tag ? props.tag: "" }
      { props.children }
    </div>
  );
};

export default Child;
